package com.hsylient.javase.chapter12.demo05;

import java.net.InetSocketAddress;
import java.net.Proxy;

/**
 * http请求怎么设置代理
 */
public class MyProxy {

    public static void main(String[] args) {
        Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 7890));
    }
}
